Rename infodir to buildinfodir in doc/*/Makefile.in (GNU bug#11737)
authorRob Browning <rlb@defaultvalue.org>
Wed, 20 Jun 2012 04:26:11 +0000 (23:26 -0500)
committerRob Browning <rlb@defaultvalue.org>
Wed, 20 Jun 2012 04:26:11 +0000 (23:26 -0500)
Overriding both DESTDIR and infodir during make install should now work.

The Emacs build process will no longer try to write directly to
infodir when both DESTDIR and infodir are overridden during make
install.  Previously, given

  make DESTDIR=/tmp/build infodir=/usr/share/info/emacs-24 install

the build process would attempt to write directly to infodir.

Origin: upstream, commit: fb0219efd1196df7de538a27159367b8220b9a8a
Bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11737
Applied-By: Rob Browning <rlb@defaultvalue.org>
Applied-Upstream: Fixed in Emacs 24

doc/misc/Makefile.in

index f28746f11c9c654a477b8372ec9236b2830ed583..f274153d232dd8cc5196b655c6d4e3baadb4c78c 100644 (file)
@@ -26,14 +26,14 @@ srcdir=@srcdir@
 
 # Tell make where to find source files; this is needed for the makefiles.
 # Note the other doc Makefiles do not use VPATH anymore, instead
-# they set infodir to an absolute path.  Not doing that here in
+# they set buildinfodir to an absolute path.  Not doing that here in
 # case INFO_TARGETS gets too long for some feeble shells.
 # (cf src/Makefile.in's passing of $lisp to make-docfile)
 VPATH=@srcdir@
 
 ## Where the output files go.
 ## Note that the setfilename command in the .texi files assumes this.
-infodir=../../info
+buildinfodir=../../info
 ## Directory with emacsver.texi.
 ## Currently only used by efaq and calc.
 emacsdir = $(srcdir)/../emacs
@@ -45,7 +45,7 @@ MAKEINFO_OPTS = --force -I$(emacsdir)
 
 # Also add new entries to INFO_FILES in the top-level Makefile.in.
 INFO_TARGETS = \
-       $(infodir)/efaq
+       $(buildinfodir)/efaq
 
 DVI_TARGETS = \
        faq.dvi
@@ -61,7 +61,7 @@ TEXI2PDF = texi2pdf
 ENVADD = TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" \
          MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
 
-mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
+mkinfodir = @cd ${srcdir}; test -d ${buildinfodir} || mkdir ${buildinfodir} || test -d ${buildinfodir}
 
 .PHONY: info dvi pdf
 
@@ -83,8 +83,8 @@ pdf: $(PDF_TARGETS)
 # Note: "<" is not portable in ordinary make rules.
 
 ## "short" target names for convenience, to just rebuild one manual.
-efaq : $(infodir)/efaq
-$(infodir)/efaq: faq.texi $(emacsdir)/emacsver.texi
+efaq : $(buildinfodir)/efaq
+$(buildinfodir)/efaq: faq.texi $(emacsdir)/emacsver.texi
        $(mkinfodir)
        cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) faq.texi
 faq.dvi: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
@@ -114,7 +114,7 @@ clean: mostlyclean
 distclean: clean
 #      rm -f Makefile
 
-## infodir is relative to srcdir.
+## buildinfodir is relative to srcdir.
 maintainer-clean: distclean
        cd $(srcdir); for file in $(INFO_TARGETS); do \
          rm -f $${file} $${file}-[1-9] $${file}-[1-9][0-9]; \